let eventsMixin = function(Wine){
	/**
	 * [_implementationHook 执行钩子方法]
	 * @param  {[type]} hook [description]
	 * @return {[type]}      [description]
	 */
	Wine.prototype._implementationHook = function(hook){
		this.$trigger('wine-hook:'+ hook)
		let handlers = this.$options[hook]
		if (handlers) {
			let i = 0
			let j = handlers.length
			for(;i<j;i++){
				handlers[i].call(this)
			}
		}
		this.$trigger('hook:'+ hook)
	}
}
module.exports = eventsMixin